package com.xuebang.admin.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;


@Table
public class Syslog {

	@Id
	private Long syslogId;
	
	private Long operatorId;

	@Column
	private String operatorName;

	@Column
	private Date operatorTime;

	@Column
	private String remark;

	public Long getSyslogId() {
		return syslogId;
	}

	public void setSyslogId(Long syslogId) {
		this.syslogId = syslogId;
	}

	public String getOperatorName() {
		return operatorName;
	}

	public void setOperatorName(String operatorName) {
		this.operatorName = operatorName;
	}

	public Date getOperatorTime() {
		return operatorTime;
	}

	public void setOperatorTime(Date operatorTime) {
		this.operatorTime = operatorTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((operatorName == null) ? 0 : operatorName.hashCode());
		result = prime * result
				+ ((operatorTime == null) ? 0 : operatorTime.hashCode());
		result = prime * result + ((remark == null) ? 0 : remark.hashCode());
		result = prime * result
				+ ((syslogId == null) ? 0 : syslogId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Syslog other = (Syslog) obj;
		if (operatorName == null) {
			if (other.operatorName != null)
				return false;
		} else if (!operatorName.equals(other.operatorName))
			return false;
		if (operatorTime == null) {
			if (other.operatorTime != null)
				return false;
		} else if (!operatorTime.equals(other.operatorTime))
			return false;
		if (remark == null) {
			if (other.remark != null)
				return false;
		} else if (!remark.equals(other.remark))
			return false;
		if (syslogId == null) {
			if (other.syslogId != null)
				return false;
		} else if (!syslogId.equals(other.syslogId))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Syslog [syslogId=" + syslogId + ", operatorName="
				+ operatorName + ", operatorTime=" + operatorTime + ", remark="
				+ remark + "]";
	}

	public Long getOperatorId() {
		return operatorId;
	}

	public void setOperatorId(Long operatorId) {
		this.operatorId = operatorId;
	}
	
	
}
